package cn.how2go.data.config;

import cn.how2go.data.entity.Cone;
import cn.hutool.http.HttpRequest;
import cn.hutool.json.JSONUtil;

import java.math.BigDecimal;

public class Test {
    public static void main(String[] args) {
        Cone param = new Cone();
        param.setTermID("097040336772");
        param.setLon(119.987911);
        param.setLat(32.321209);
        double[] lnglat = GPSTransToAMap.transform(119.987911,32.321209);
        param.setLon2(lnglat[0]);
        param.setLat2(lnglat[1]);
        String result2 = HttpRequest.post("http://jj.how2go.cn:18086/api/cone/updateLocation")
                .body(JSONUtil.toJsonStr(param))
                .execute().body();
        System.out.println(result2);
    }
}
